// 自动生成模板ParkingSpace
package parkingSpace

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// parkingSpace表 结构体  ParkingSpace
type ParkingSpace struct {
	global.GVA_MODEL
	GarageId        *int   `json:"garageId" form:"garageId" gorm:"column:garage_id;comment:;"`                                   //garageId字段
	ParkingSpaceNum string `json:"parkingSpaceNum" form:"parkingSpaceNum" gorm:"column:parking_space_num;comment:车位编号;size:30;"` //车位编号
	Area            string `json:"area" form:"area" gorm:"column:area;comment:车位面积;size:30;"`                                    //车位面积
	Floor           string `json:"floor" form:"floor" gorm:"column:floor;comment:楼层;size:30;"`                                   //楼层
	Category        string `json:"category" form:"category" gorm:"column:category;comment:车位类型;size:30;"`                        //车位类型
	Status          string `json:"status" form:"status" gorm:"column:status;comment:车位状态;size:30;"`
}
type ParkingSpaceRes struct {
	global.GVA_MODEL
	Name            string
	UserName        string
	GarageId        *int   `json:"garageId" form:"garageId" gorm:"column:garage_id;comment:;"`                                   //garageId字段
	ParkingSpaceNum string `json:"parkingSpaceNum" form:"parkingSpaceNum" gorm:"column:parking_space_num;comment:车位编号;size:30;"` //车位编号
	Area            string `json:"area" form:"area" gorm:"column:area;comment:车位面积;size:30;"`                                    //车位面积
	Floor           string `json:"floor" form:"floor" gorm:"column:floor;comment:楼层;size:30;"`                                   //楼层
	Category        string `json:"category" form:"category" gorm:"column:category;comment:车位类型;size:30;"`                        //车位类型
	Status          string `json:"status" form:"status" gorm:"column:status;comment:车位状态;size:30;"`
}

// TableName parkingSpace表 ParkingSpace自定义表名 parking_space
func (ParkingSpace) TableName() string {
	return "parking_space"
}
